package core.communication.message;

import core.communication.electionConfiguration.CVoter;

public class UpdateVoterMessage extends Message {
	private static final long serialVersionUID = -9162602728297114385L;

	private String voterIdentificationField;
	private CVoter voter;

	public UpdateVoterMessage(String destinationUri, String voterIdentificationField, CVoter voter) {
		super();
		setPriority(MessagePriority.NORMAL);
		setMessageType(MessageType.EntityUpdate);
		setDestinationURI(destinationUri);
		setDirection(Direction.DOWN);
		this.voterIdentificationField = voterIdentificationField;
		this.voter = voter;
	}

	public String getVoterIdentificationField() {
		return voterIdentificationField;
	}

	public void setVoterIdentificationField(String voterIdentificationField) {
		this.voterIdentificationField = voterIdentificationField;
	}

	public CVoter getVoter() {
		return voter;
	}

	public void setVoter(CVoter voter) {
		this.voter = voter;
	}
}
